<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>跑步</title>
		<script type="text/javascript">
			window._AMapSecurityConfig = {
				securityJsCode: "866fc37463731c69f170ee9a2ffff462",
			};
		</script>
		<script src="https://webapi.amap.com/loader.js"></script>
		<script type="text/javascript">
			AMapLoader.load({
				key: "d0e9d7d6b822e04676dcf4fb7f85594b", // 申请好的Web端开发者Key，首次调用 load 时必填
				version: "2.0", // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
			})
				.then((AMap) => {
					const map = new AMap.Map("container", {
						zoom: 11, //级别
						center: [104.066301,30.572961], //中心点坐标
						viewMode: "3D", //使用3D视图
					});
				})

				.catch((e) => {
					console.error(e); //加载错误提示
				});
		</script>
	</head>
	<body class="run">
		<!-- 主体部分 -->
		<main class="main">
			<!-- 头部导航navbar -->
			<nav class="navbar"></nav>
			<!-- 跑步距离统计 -->
			<div class="count">
				目前累计跑步距离:
				<p><span id="total">538.00</span>公里</p>
			</div>
			<!-- 地图展示 -->
			<div class="mapbox">
				<div id="container"></div>
				<div id="go">GO</div>
			</div>
		</main>
		<!-- 底部导航 tabbar -->
		<nav class="tabbar"></nav>
		<!-- 倒计时模态框 -->
		<div id="mask"></div>
		<div id="box">3</div>
	</body>
</html>
